<?php
	session_start();
  require_once('../includes/constants.php');
  require_once('../library/googlecart.php');
   
  $merchant_id = GOOGLE_MERCHANT_ID;   
  $merchant_key = GOOGLE_MERCHANT_KEY;   
  $server_type = ENVIRONMENT;
  $currency = CURRENCY;
  $googleCart = new GoogleCart($merchant_id, $merchant_key, $server_type,  $currency);  

  $_SESSION['cart'][0][ GARMENT ] = 1;
  $_SESSION['cart'][0][ FABRIC ] = 1;
  $_SESSION['cart'][0][ SIZE ] = 1;
  $_SESSION['cart'][0][ PRICE ] = 40;

  $_SESSION['cart'][1][ GARMENT ] = 2;
  $_SESSION['cart'][1][ FABRIC ] = 2;
  $_SESSION['cart'][1][ SIZE ] = 2;
  $_SESSION['cart'][1][ PRICE ] = 20;  
  
  $_SESSION[ SIZES ][1]['s_size_id'] = 1;
  $_SESSION[ SIZES ][1]['s_name'] = 'mySize';
  $_SESSION[ SIZES ][1]['s_shoulder'] = 1;
  $_SESSION[ SIZES ][1]['s_chest'] = 31;
  $_SESSION[ SIZES ][1]['s_bust'] = 33;
  $_SESSION[ SIZES ][1]['s_waist'] = 25;
  $_SESSION[ SIZES ][1]['s_hips'] = 36;
  $_SESSION[ SIZES ][1]['s_back_waist'] = 40;
  $_SESSION[ SIZES ][1]['s_leg'] = 40;
  $_SESSION[ SIZES ][1]['s_height'] = 5.6;
      
  $_SESSION[ SIZES ][2]['s_size_id'] = 2;
  $_SESSION[ SIZES ][2]['s_name'] = 'mySize';
  $_SESSION[ SIZES ][2]['s_shoulder'] = 1;
  $_SESSION[ SIZES ][2]['s_chest'] = 31;
  $_SESSION[ SIZES ][2]['s_bust'] = 33;
  $_SESSION[ SIZES ][2]['s_waist'] = 25;
  $_SESSION[ SIZES ][2]['s_hips'] = 36;
  $_SESSION[ SIZES ][2]['s_back_waist'] = 40;
  $_SESSION[ SIZES ][2]['s_leg'] = 40;
  $_SESSION[ SIZES ][2]['s_height'] = 5.6;


  
  $_SESSION[ GARMENTS ][1]['g_name'] = "Marylin Monroe Dress";
  $_SESSION[ GARMENTS ][2]['g_name'] = "Sparkling Halter Top";
  $_SESSION[ GARMENTS ][1]['g_description'] = "Beautiful Marylin Monroe Dress";
  $_SESSION[ GARMENTS ][2]['g_description'] = "Beautiful Sparkling Halter Top";  
  $_SESSION[ GARMENTS ][1]['g_est_fabric_required'] = "3";
  $_SESSION[ GARMENTS ][2]['g_est_fabric_required'] = "1";
   
  $_SESSION[ FABRICS ][1]['f_name'] = "Pearl Satin";
  $_SESSION[ FABRICS ][2]['f_name'] = "Silk Stars Crepe";
 
  $_SESSION[ FABRICS ][1]['f_weight_per_m'] = 300;
  $_SESSION[ FABRICS ][2]['f_weight_per_m'] = 100;
   
$_SESSION[CUSTOMER_ID] = 1;
  echo $googleCart->CheckoutServer2ServerButton('../sendCartToGoogle.php');
?>
